<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title><?php echo C_TITLE ?></title>
    <base href="<?=base_url()?>" />
    <meta name="description"  content="<?php echo C_META_DESCRIPTION    ?>">
    <meta name="keywords"     content="<?php echo C_META_KEYWORDS       ?>">
    <meta name="author"       content="<?php echo C_META_AUTHOR         ?>">
    <meta name="generator"    content="Emacs http://www.gnu.org/software/emacs/">
    <link href="application/external/fileinput/css/fileinput.css" rel="stylesheet" type="text/css" />
    <link href="application/external/tag-it/css/jquery.tagit.css" rel="stylesheet" type="text/css" />
    <link href="application/views/scripts/css/candidato_perfil.css" rel="stylesheet" type="text/css" />
  </head>
  <body >

    <div id="container-candidato-perfil" >
      <div id="toolbar" class="ui-widget-header ui-corner-all"> 
        <button id="change-pwd" type="button" name="change-pwd" ><?php echo $this->lang->line("TB_BUTTON_CHG_PWD") ?></button>
        <button id="exportar-cv" type="button" name="exportar-cv" ><?php echo $this->lang->line("TB_BUTTON_EXP_CV") ?></button>
        <button id="renovar" type="button" name="renovar" ><?php echo $this->lang->line("TB_BUTTON_RENOVAR") ?></button>
        <button id="edit" type="button" name="edit" ><?php echo $this->lang->line("TB_BUTTON_EDIT") ?></button>
      </div>
      <div id="tips"></div>
      <div id="expander">
        <h3>
              <?php echo $this->lang->line("PROFILE_TEXT_HEADER") ?>
              <span style="margin-left:400px;"><?php echo $candidato["nombre"]." ".$candidato["apellido"]." ".$candidato["apellido2"]?></span>
        </h3>
        <div id="" style="height:160px;">        

          <div id="container-img">
            <img id="img-perfil" src="application/uploads/candidatos/<?php echo $candidato['img'] ?>" class="ui-widget-content ui-corner-all" alt="Imagen del perfil del candidato" />
            <button id="changeimg" type="button" name="changeimg" ><?php echo $this->lang->line("PROFILE_BUTTON_CHANGE_IMG") ?></button>
            <?php echo form_open_multipart("candidato/doUpload", $formImg);?>
              <div id="container-form-img">
                <input type="hidden" id="id" name="id" value="<?php echo $candidato['id'] ?>" />
                <input type="file" class="" name="input_img" id="input_img" title="<?php echo $this->lang->line('SIZE_IMG') ?>" />
                <button id="upload" type="submit" name="upload"><?php echo $this->lang->line("B_UPLOAD_IMG") ?></button>
              </div>
            </form>
          </div>

          <div id="data" class="">
            <form method="" id="form-candidato-perfil" action="" class="forms" >
              <input type="hidden" id="id" name="id" value="<?php echo $candidato['id'] ?>" />
              <table width="" cellspacing="" cellpadding="" border="0">
                <tr>
                  <td class="ui-form-label"><?php echo $this->lang->line("F_DNI") ?></td>
                  <td class="ui-form-value">
                    <input type="text" id="dni" name="dni" value="<?php echo $candidato['dni'] ?>" class="ui-widget-content ui-corner-all ui-form-value" size="12" disabled="disabled" maxlength="12" />
                  </td>
                  <td class="ui-form-label"><?php echo $this->lang->line("F_NOMBRE") ?></td>
                  <td class="ui-form-value">
                    <input type="text" id="nombre" name="nombre" value="<?php echo $candidato['nombre'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" />
                  </td>
                  <td class="ui-form-label"><?php echo $this->lang->line("F_APELLIDO") ?></td>
                  <td class="ui-form-value">
                    <input type="text" id="apellido" name="apellido" value="<?php echo $candidato['apellido'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" />
                  </td>
                </tr>
                <tr>
                  <td class="ui-form-label"><?php echo $this->lang->line("F_APELLIDO2") ?></td>
                  <td class="ui-form-value">
                    <input type="" id="apellido2" name="apellido2" value="<?php echo ($candidato['apellido2'] !== '') ? $candidato['apellido2'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value" size="12" disabled="disabled" />
                  </td>
                  <td class="ui-form-label"><?php echo $this->lang->line("F_EMAIL") ?></td>
                  <td class="ui-form-value">
                    <input type="" id="email" name="email" value="<?php echo $candidato['email'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" />
                  </td>
                  <td class="ui-form-label"><?php echo $this->lang->line("F_FECHA_NAC") ?></td>
                  <td class="ui-form-value">
                    <input type="text" id="fecha_nac" name="fecha_nac" value="<?php echo $candidato['fecha_nac'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                  </td>
                </tr>
                <tr>
                  <td class="ui-form-label" ><?php echo $this->lang->line("F_MOVIL") ?></td>
                  <td class="ui-form-value" >
                    <input type="text" id="movil" name="movil" value="<?php echo $candidato['movil'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                  </td>
                  <td class="ui-form-label" ><?php echo $this->lang->line("F_SMS") ?></td>
                  <td class="ui-form-value" >
                    <input type="checkbox" id="sms" name="sms" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" <?php if($candidato["sms"] === "1") echo "checked"; ?>/>
                  </td>
                  <td class="ui-form-label" ><?php echo $this->lang->line("F_SEXO") ?></td>
                  <td class="ui-form-value" >
                    <input type="radio" name="sexo" value="M" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" <?php if($candidato["sexo"] === "0") echo "checked"; ?>/>
                    Mujer <br />
                    <input type="radio" name="sexo" value="H" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" <?php if($candidato["sexo"] === "1") echo "checked"; ?>/>
                    Hombre
                  </td>
                </tr>
              </table>
            </form>
          </div>
        </div>
      </div>

      <div id="fichas">
        <ul>
          <li><a href="#ficha1"><?php echo $this->lang->line("FICHA1") ?></a></li>
          <li><a href="#ficha2"><?php echo $this->lang->line("FICHA2") ?></a></li>
          <li><a href="#ficha3"><?php echo $this->lang->line("FICHA3") ?></a></li>
          <li><a href="#ficha4"><?php echo $this->lang->line("FICHA4") ?></a></li>
        </ul>
        
        <div id="ficha1">
          
          <div id="accordion-ficha1">

            <!-- Infomación de la dirección -->
            <h3><a href="#"><?php echo $this->lang->line("FICHA1_ACC_1") ?></a></h3>
            <div>
              <form method="" id="form-candidato-perfil2" action="" class="forms" >
                <table width="" cellspacing="" cellpadding="" border="0">

                  <tr>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_PAIS") ?></td>
                    <td class="ui-form-value">
                      <input type="text" id="pais" name="pais" value="<?php echo $candidato['pais'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_PROVINCIA") ?></td>
                    <td class="ui-form-value">
                      <input type="text" id="provincia" name="provincia" value="<?php echo $candidato['provincia'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_POBLACION") ?></td>
                    <td class="ui-form-value" width="100px">
                      <input type="text" id="poblacion" name="poblacion" value="<?php echo $candidato['poblacion'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" />
                    </td>
                    <td class="ui-form-label" width="80px"><?php echo $this->lang->line("F_COD_POSTAL") ?></td>
                    <td class="ui-form-value" width="60px">
                      <input type="text" id="codigo_pos" name="codigo_pos" value="<?php echo ($candidato['codigo_pos'] !== '') ? $candidato['codigo_pos'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                  </tr>
                  
                  <tr>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_VIA") ?></td>
                    <td class="ui-form-value" width="140px;">
                      <select id="via" name="via" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled">
                        <option value=''>SELECCIONE</option>
                        <option value='0'><?php echo $this->lang->line("F_VIA_OPTION1") ?></option>
                        <option value='1'><?php echo $this->lang->line("F_VIA_OPTION2") ?></option>
                        <option value='2'><?php echo $this->lang->line("F_VIA_OPTION3") ?></option>
                        <option value='3'><?php echo $this->lang->line("F_VIA_OPTION4") ?></option>
                        <option value='4'><?php echo $this->lang->line("F_VIA_OPTION5") ?></option>
                        <option value='5'><?php echo $this->lang->line("F_VIA_OPTION6") ?></option>
                        <option value='6'><?php echo $this->lang->line("F_VIA_OPTION7") ?></option>
                        <option value='7'><?php echo $this->lang->line("F_VIA_OPTION8") ?></option>
                        <option value='8'><?php echo $this->lang->line("F_VIA_OPTION9") ?></option>
                        <option value='9'><?php echo $this->lang->line("F_VIA_OPTION10") ?></option>
                        <option value='10'><?php echo $this->lang->line("F_VIA_OPTION11") ?></option>
                        <option value='11'><?php echo $this->lang->line("F_VIA_OPTION12") ?></option>
                        <option value='12'><?php echo $this->lang->line("F_VIA_OPTION13") ?></option>
                      </select>
                    </td>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_VIA_NOMBRE") ?></td>
                    <td class="ui-form-value">
                      <input type="text" id="nombre_via" name="nombre_via" value="<?php echo ($candidato['nombre_via'] !== '') ? $candidato['nombre_via'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_VIA_NUM") ?></td>
                    <td class="ui-form-value">
                      <input type="text" id="numero_via" name="numero_via" value="<?php echo ($candidato['numero_via'] !== '') ? $candidato['numero_via'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_DIR_PUERTA") ?></td>
                    <td class="ui-form-value">
                      <input type="text" id="puerta" name="puerta" value="<?php echo ($candidato['puerta'] !== '') ? $candidato['puerta'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                  </tr>

                  <tr>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_DIR") ?></td>
                    <td class="ui-form-value">
                      <textarea name="direccion" id="direccion" rows="" cols="22" tabindex="" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"><?php echo ($candidato['direccion'] !== '') ? $candidato['direccion'] : 'No registrado' ?></textarea>
                    </td>
                    <td class="ui-form-label"><?php echo $this->lang->line("F_TLF") ?></td>
                    <td class="ui-form-value" width="80px">
                      <input type="text" id="tlf" name="tlf" value="<?php echo ($candidato['tlf'] !== '') ? $candidato['tlf'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                    <td class="ui-form-label" width="80px"><?php echo $this->lang->line("F_TLF2") ?></td>
                    <td class="ui-form-value">
                      <input type="text" id="tlf2" name="tlf2" value="<?php echo ($candidato['tlf2'] !== '') ? $candidato['tlf2'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                  </tr>

                </table>
              </form>
            </div>

            <!-- Información acerca de la situación laboral -->            
            <h3><a href="#"><?php echo $this->lang->line("FICHA1_ACC_2") ?></a></h3>
            <div class="ui-corner-all" >
              <form method="" id="form-candidato-perfil3" action="" class="forms" >
                <table width="" cellspacing="" cellpadding="" border="0">

                  <tr>
                    <td class="ui-form-label" ><?php echo $this->lang->line("F_STATUS") ?></td>
                    <td class="ui-form-value" >
                      <select id="estatus_lab" name="estatus_lab" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled">
                        <option value=''>SELECCIONE</option>
                        <option value='0'><?php echo $this->lang->line("F_STATUS1") ?></option>
                        <option value='1'><?php echo $this->lang->line("F_STATUS2") ?></option>
                        <option value='2'><?php echo $this->lang->line("F_STATUS3") ?></option>
                      </select>
                    </td>
                    <td class="ui-form-label" ><?php echo $this->lang->line("F_RENOVACION") ?></td>
                    <td class="ui-form-value">
                      <input type="text" id="renovacion" name="renovacion" value="<?php echo ($candidato['renovacion'] !== '') ? $candidato['renovacion'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value date" disabled="disabled"/>
                    </td>
                    <td class="ui-form-label" ><?php echo $this->lang->line("F_CADUCIDAD") ?></td>
                    <td class="ui-form-value" >
                      <input type="text" id="caducidad" name="caducidad" value="<?php echo ($candidato['caducidad'] !== '') ? $candidato['caducidad'] : 'No registrado' ?>" class="ui-widget-content ui-corner-all ui-form-value date" disabled="disabled"/>
                    </td>
                  </tr>

                  <tr>
                    <td class="ui-form-label" ><?php echo $this->lang->line("F_REG") ?></td>
                    <td class="ui-form-value">
                      <input type="text" id="fecha_reg" name="fecha_reg" value="<?php echo $candidato['fecha_reg'] ?>" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled"/>
                    </td>
                    <td class="ui-form-label" ><?php echo $this->lang->line("F_MINU") ?></td>
                    <td class="ui-form-value" >
                      <div style="float:left; margin-top:6px;">
                      <input type="checkbox" id="minusvalia" name="minusvalia" value="" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" style="margin-top:-50px;"/>
                      <div id="slider" style="margin-left:42px;margin-top:-18px;width:80px;visibility:hidden;"></div>
                      </div> 
                      <input type="text" name="grado_min" id="grado_min" class="ui-corner-all" style="float:right;margin-right:-20px;margin-top:-4px;width:36px;visibility:hidden;" />
                    </td>
                  </tr>
                  
                </table>
              </form>
            </div>

            <!-- Información acerca de la disponibilidad del candidato-->
            <h3><a href="#"><?php echo $this->lang->line("FICHA1_ACC_3") ?></a></h3>
            <div class="ui-corner-all">
              <form method="" id="form-candidato-perfil4" action="" class="forms" >
                <table width="" cellspacing="" cellpadding="" border="0">
                  <tr>
                    <td class="ui-form-label" ><?php echo $this->lang->line("F_DISP_HOR") ?></td>
                    <td class="ui-form-value" width="100px">
                      <select id="horario" name="horario" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled">
                        <option value=''>SELECCIONE</option>
                        <option value='0'><?php echo $this->lang->line("F_DISP_HOR1") ?></option>
                        <option value='1'><?php echo $this->lang->line("F_DISP_HOR2") ?></option>
                        <option value='2'><?php echo $this->lang->line("F_DISP_HOR3") ?></option>
                        <option value='3'><?php echo $this->lang->line("F_DISP_HOR4") ?></option>
                      </select>
                    </td>
                    <td class="ui-form-label" ><?php echo $this->lang->line("F_DISP_VIA") ?></td>
                    <td class="ui-form-value" width="100px">
                      <select id="viajar" name="viajar" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled">
                        <option value=''>SELECCIONE</option>
                        <option value='0'><?php echo $this->lang->line("F_DISP_VIA1") ?></option>
                        <option value='1'><?php echo $this->lang->line("F_DISP_VIA2") ?></option>
                        <option value='2'><?php echo $this->lang->line("F_DISP_VIA3") ?></option>
                        <option value='3'><?php echo $this->lang->line("F_DISP_VIA4") ?></option>
                      </select>
                    </td>
                    <td class="ui-form-label" ><?php echo $this->lang->line("F_VEH") ?></td>
                    <td class="ui-form-value">
                      <input type="checkbox" id="vehiculo" name="vehiculo" value="" class="ui-widget-content ui-corner-all ui-form-value" disabled="disabled" style="margin-top:-50px;"/>
                    </td>
                  </tr>
                </table>
              </form>
            </div>
            
          </div>
          
        </div>

        <div id="ficha2">
          
          <div id="accordion-ficha2">
            
            <!-- Experiencia laboral del candidato -->
            <h3><a href="#"><?php echo $this->lang->line("FICHA2_ACC_1") ?></a></h3>
            <div>
              <hr class="ui-state-highlight">
              <h4 style="margin-top:0px">Puestos Ocupados</h4>
              <table id="pager-<?php echo $this->pre ?>"  ></table>
              <table id="grid-<?php echo $this->pre ?>" oncontextmenu="return false"></table>
            </div>
            
            <!-- Areas de Conocimientos del candidato -->
            <h3><a href="#"><?php echo $this->lang->line("FICHA2_ACC_2") ?></a></h3>
            <div id="conocimientos">
              <hr class="ui-state-highlight">
              <h4 style="margin-top:0px">Areas de Conocimiento</h4>
   	      <form>
                <input name="conocimientos" id="tagsConocimientos" value="<?php echo $candidato['conocimientos'] ?>">
	      </form>
            </div> 
          </div>
        </div>

        <div id="ficha3">

          <h3><a href="#"><?php echo $this->lang->line("FICHA3_ACC_1") ?></a></h3>
          <div>
            <h5 style="margin-top:2px;"><?php echo $this->lang->line("FICHA3_ACC_1_TIT") ?></h5>
            <table width="" cellspacing="5px" cellpadding="" border="0">
              <tr style="margin-bottom:20px;">
                <td class="td-tag ui-state-highlight ui-corner-all">Ingeniero en sistemas egresado de Universidad de los Andes ano 2012</td>
              </tr>
              <tr>
                <td class="td-tag ui-state-highlight ui-corner-all">Abogado egresado de Universidad Central ano 2010</td>
              </tr>
            </table>
          </div>

          <h3><a href="#"><?php echo $this->lang->line("FICHA3_ACC_2") ?></a></h3>
          <div>
            <h5 style="margin-top:2px;"><?php echo $this->lang->line("FICHA3_ACC_2_TIT").":" ?></h5>
            <table width="" cellspacing="5px" cellpadding="" border="0">
              <tr style="margin-bottom:20px;">
                <td class="td-tag ui-state-highlight ui-corner-all">Ingles con un nivel Avanzado</td>
              </tr>
              <tr>
                <td class="td-tag ui-state-highlight ui-corner-all">Frances con un nivel Intermedio</td>
              </tr>
            </table>
          </div>
          
          <h3><a href="#"><?php echo $this->lang->line("FICHA3_ACC_3") ?></a></h3>
          <div>
            <h5 style="margin-top:2px;"><?php echo $this->lang->line("FICHA3_ACC_3_TIT").":" ?></h5>
            <table width="" cellspacing="5px" cellpadding="" border="0">
              <tr style="margin-bottom:20px;">
                <td class="td-tag ui-state-highlight ui-corner-all">ARCgis Version 1.0 nivel Avanzado</td>
              </tr>
              <tr>
                <td class="td-tag ui-state-highlight ui-corner-all">Word version 2.0 nivel Intermedio</td>
              </tr>
            </table>
          </div>

        </div>
        
        <div id="ficha4">

          <div id="accordion-ficha4">

            <h3><a href="#"><?php echo $this->lang->line("FICHA4_ACC_1") ?></a></h3>
            <div>
              <h5 style="margin-top:2px;"><?php echo $this->lang->line("FICHA4_ACC_1_TIT").":" ?></h5>
              <table width="" cellspacing="5px" cellpadding="" border="0">
                <tr style="margin-bottom:20px;">
                  <td class="td-tag ui-state-highlight ui-corner-all">Teleinformatica</td>
                </tr>
                <tr>
                  <td class="td-tag ui-state-highlight ui-corner-all">Sistemas</td>
                </tr>
              </table>

            </div>

          </div>

        </div>

      </div>

</div>
<script type="text/javascript" charset="utf-8"><?php include("application/external/fileinput/js/jquery.fileinput.min.js") ?></script>
<script type="text/javascript" charset="utf-8"><?php include("application/external/jquery.form.js") ?></script>
<script type="text/javascript" charset="utf-8"><?php include("application/external/tag-it/js/tag-it.js") ?></script>
<script type="text/javascript" charset="utf-8"><?php include("scripts/js/candidato_perfil.js") ?></script>
</body>
</html>
